package com.mzj.saas.mservice.sys.repository;

import com.mzj.saas.mservice.sys.entity.WechatAccount;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface WechatAccountRepository
		extends PagingAndSortingRepository<WechatAccount, Long>, JpaSpecificationExecutor<WechatAccount> {
	List<WechatAccount> findByOrgId(Long orgId);

	WechatAccount findByOrgIdAndType(Long orgId, Integer type);
}
